<?php
namespace plugin\banmichaoqiangbizhi\validate;
 

use app\common\validate\BaseValidate;
 

class ShopnavValidate extends BaseValidate
{
    protected $rule = [  
    ];

    protected $message = [
           
          'id.number' => 'id必须为数字',
          'id.require' => 'id不得为空',
          
          
          
          
          
          
          
          
          'name.max' => '不能超过88个字符字',
          'img.max' => '不能超过88个字符字',
          'sort.number' => '必须为数字',
          
          
          'name.require' => '名称不得为空',
          
          'img.require' => '图片不得为空',
          
          
          //数据验证提示
    ];

 
       
       /**
      * @notes  删除导航  
      * @date 2022-12-09 19:43:31
      * @author 半米科技低代码一键生成
      */
       public function   scenescdh(){ 
                   return $this->append('id','number')->append('id','require');
       }
       
       /**
      * @notes  导航详情编辑  
      * @date 2022-12-09 20:06:41
      * @author 半米科技低代码一键生成
      */
       public function   scenedhxqbj(){ 
                   return $this->append('id','number');
       }
 
       
       /**
      * @notes  编辑导航信息  
      * @date 2022-12-09 20:22:58
      * @author 半米科技低代码一键生成
      */
       public function   scenebjdhxx(){ 
                   return $this->append('id','number')->append('id','require')->append('name','max:88')->append('img','max:88')->append('sort','number');
       }
       
       /**
      * @notes  增加导航  
      * @date 2022-12-09 20:34:38
      * @author 半米科技低代码一键生成
      */
       public function   scenezjdh(){ 
                   return $this->append('name','max:88')->append('name','require')
                   ->append('img','max:88')->append('img','require')->append('sort','number');
       }
       //数据验证方法

}